function PolicyTests(name)
{
    this.base = TestCase;
    this.base(name);
    this.className = "PolicyTests";
}
PolicyTests.prototype = new TestCase;
PolicyTests.testing = function ()
{
    return [ "file:///home/dafyddj/src/takecontrol/trunk/components/TakeControlService.js" ];
}

PolicyTests.prototype.setUp = function ()
{
    this.policy = new Policy();
}

PolicyTests.prototype.testAllow = function ()
{
    var date = new Date(2006, 9, 4, 11, 06);
    assertTrue("Accept", this.policy.shouldLoad(date));
}

PolicyTests.prototype.testDeny = function ()
{
    var date = new Date(2006, 9, 4, 9, 30);
    assertFalse("Reject", this.policy.shouldLoad(date));
}

